<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <div class="box">
        <span>11</span>
        <p>22</p>
    </div>

    <script>

        // cloneNode(默认是false)  只克隆元素，不克隆子元素

        var oBox = document.querySelector('.box') ;
        var oBox2 = oBox.cloneNode(true) ;
        console.log(oBox2);
    </script>
    
</body>
</html>